package mba.studies.read_system.mapper;



import mba.studies.read_system.entity.*;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.lang.Module;
import java.util.List;

@Mapper
@Repository
public interface HksMapper {
    List<School> listAll(int schoolType);
    List<School> getAllSchool();
    void deleteSchool(String schoolCode);
    void deleteConsultSubmit(int id);
    void addSchool(School school);
    void addUser(User user);
    void addConsultSubmit(ConsultSubmit consultSubmit);
    List<ConsultSubmit> getConsultSubmit(int page,int pageSize);
    List<ConsultSubmit> getAllConsultSubmit();

    void addSchoolAssess(SchoolAssess schoolAssess);
    void addApplyForGrade(ApplyForGrade applyForGrade);
    List<News> listAllNews(int newType);
    KeyValuesEntity getKeyValue(String keyParm);
    void updateKeyValue(String keyParm,String valueParm);

    List<Banners> listAllBanners();
    List<MyModule> listAllModules();
    School querySchoolByCode(String schoolCode);
    User queryUserByOpenId(String openId);
}

